package com.funsport;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * Fun-Sport 应用启动类
 * 
 * @author Fun-Sport Team
 * @version 1.0.0
 */
@SpringBootApplication
@MapperScan("com.funsport.mapper")
@EnableCaching
@EnableAsync
@EnableScheduling
public class FunSportApplication {

    public static void main(String[] args) {
        SpringApplication.run(FunSportApplication.class, args);
        System.out.println("\n" +
                "===========================================\n" +
                "  Fun-Sport 后端服务启动成功！\n" +
                "  API文档地址: http://localhost:8858/api/swagger-ui.html\n" +
                "  Druid监控: http://localhost:8858/api/druid/\n" +
                "===========================================\n");
    }
}

